# 最大线程数
MAX_WORKERS = 16

# 远程数据库推送地址
REMOTE_DB_PUSH_URL = "http://xdrj.lottefuture.com/zxy/V1/Gen2/ed1XF/lineReportController/receive/method"

HEADERS = {
    'sec-ch-ua-platform': '"Windows"',
    'Referer': 'https://m.weibo.cn',
    # 'sec-ch-ua': '"Chromium";v="136", "Google Chrome";v="136", "Not.A/Brand";v="99"',
    "Connection": "close",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
}

# 隧道域名:端口号
tunnel = "u705.kdltps.com:15818"

# 用户名密码方式
username = "t14920023015118"
password = "lny2ogcg"

PROXY = {
    "http": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel},
    "https": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel}
    }
# PROXY =None

DEBUG = False


if not DEBUG: ##### 服务器 #####
    URLS_PATH = '/home/ladybug/weibo_crawl/urls.txt'
    BLOCK_KEYWORD_PATH = '/home/ladybug/weibo_crawl/block_keyword.txt'
    JS_PATH='/home/ladybug/weibo_crawl/pass_by_selenium/drag_captcha'
    DRIVER_PATH = "D:\PycharmProjects\weibo_crawl\pass_by_selenium\chromedriver-win64\chromedriver.exe"

else:    ##### 本地 #####

    # PROXY = {
    #     "http": "http://127.0.0.1:9000",  # HTTP 代理地址
    #     "https": "http://127.0.0.1:9000",  # HTTPS 代理地址
    # }
    # PROXY=None
    DRIVER_PATH = ".\pass_by_selenium\chromedriver-win64\chromedriver.exe"
    URLS_PATH = './urls.txt'
    BLOCK_KEYWORD_PATH = './block_keyword.txt'
    JS_PATH='./pass_by_selenium/drag_captcha'




